package com.express.entity;

import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;

import java.util.Date;

@Data
@Table(name="sys_user")
public class User {
    //@Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true,comment = "ID")
    private Integer id;
    //@Column(name = "username",type = MySqlTypeConstant.VARCHAR,length = 10,comment = "用户名")
    private String username;
    //@Column(name = "password",type = MySqlTypeConstant.VARCHAR,length = 50,comment = "用户密码")
    private String password;
    //@Column(name = "realname",type = MySqlTypeConstant.VARCHAR,length = 20,comment = "")
    private String realname;
    //@Column(name = "nickname",type = MySqlTypeConstant.VARCHAR,length = 20,comment = "简称")
    private String nickname;
    //@Column(name = "phone",type = MySqlTypeConstant.VARCHAR,length = 20,comment = "手机号")
    private String phone;
    //@Column(name = "email",type = MySqlTypeConstant.VARCHAR,length = 20,comment = "邮箱")
    private String email;
    //@Column(name = "sex",type = MySqlTypeConstant.INT,length = 10,comment = "性别")
    private Integer sex;
    //@Column(name = "remark",type = MySqlTypeConstant.VARCHAR,length = 20,comment = "备注")
    private String remark;
    //@Column(name = "create_time",type = MySqlTypeConstant.DATETIME,comment = "创建时间")
    private Date createTime;
    //@Column(name = "create_id",type = MySqlTypeConstant.INT,length = 10,comment = "创建人id")
    private Integer createId;
    //@Column(name = "update_time",type = MySqlTypeConstant.DATETIME,comment = "更新时间")
    private Date updateTime;
    //@Column(name = "update_id",type = MySqlTypeConstant.INT,comment = "更新人id")
    private Integer updateId;
    //@Column(name = "role_name",type = MySqlTypeConstant.VARCHAR,length = 20,comment = "角色名称")
    private String roleName;
    //@Column(name = "role_id",type = MySqlTypeConstant.VARCHAR,length = 20,comment = "角色代码")
    private String roleId;
    // 来源 1:系统 2:官网 3:公众号
    private String source;

}